package annotation

import "reflect"

var annotationTypes = map[reflect.Type]struct{}{
	new(Component).GetRtGspringBean():               {},
	new(Configuration).GetRtConfigurationAnno():     {},
	new(ScanStructField).GetRtScanStructFieldAnno(): {},
	reflect.TypeOf((*Initialize)(nil)).Elem():       {},
	reflect.TypeOf((*Bean)(nil)).Elem():             {},
}

func IsAnnotationType(refType reflect.Type) bool {
	_, ok := annotationTypes[refType]
	return ok
}
